<template>
  <div class="page-title">
    <div class="title">{{ title }}</div>
    <div class="close" @click="clickClose"><i class="el-icon-close"></i></div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    title: {
      type: String,
    },
  },
  data() {
    return {};
  },
  methods: {
    clickClose() {
      this.$emit("clickClose");
    },
  },
};
</script>
<style lang="less" scoped>
.page-title {
  color: #fff;
  box-sizing: border-box;
  padding-left: 15px;
  width: 100%;
  height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #409eff;
  .title {
    font-size: 20px;
  }
  .close {
    height: 46px;
    line-height: 46px;
    padding: 0 15px;
    font-size: 16px;
    cursor: pointer;
  }
}
</style>
